<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id ID
 * @property string $msg_id 消息ID
 * @property string $group_id 房间ID
 * @property int $user_id 用户ID
 * @property string $user_nick 昵称
 * @property string $user_avatar 头像
 * @property int $user_type 用户类型 1-普通观众 2-房主 3-房管 9-游客
 * @property string $user_level 等级
 * @property int $lamp_id 灯牌ID
 * @property string $lamp_label 灯牌名称
 * @property int $lamp_level 灯牌等级
 * @property string $msg_type 消息类型 text-文本消息 notice-公告  tips-提示 welcome-欢迎消息
 * @property string $msg_data 消息内容
 * @property int $msg_time 发送时间
 */
class LiveChat extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'live_chat';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'msg_id', 'group_id', 'user_id', 'user_nick', 'user_avatar', 'user_type', 'user_level', 'lamp_id', 'lamp_label', 'lamp_level', 'msg_type', 'msg_data', 'msg_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'user_type' => 'integer', 'lamp_id' => 'integer', 'lamp_level' => 'integer', 'msg_time' => 'integer'];
}
